package com.anti.modular.bus.roomfurniture.entity;

import com.anti.commom.support.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 房间家私配置表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name="bus_lease_furniture")
public class LeaseFurniture extends BaseEntity {

    /**
     * 主键id
     */
    @Id
    private Long id;

    /**
     * 租約id
     */
    private Long leaseId;

    /**
     * 家私配置表id
     */
    private Long furnitureid;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 家私名称
     */
    private String name;

    /**
     * 价格字符转名称["22.00", "33.00", "44.00"]
     */
    private String pricestr;

    /**
     * 赔偿价格
     */
    private BigDecimal price;

    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    private Integer status;

}
